
export default {
    /**
     * 该混入配置为解决详情回调状态不刷新，以及页面返回时在app端出现历史记录问题，详情请阅读源码
     */
     data(){
        return{
            svgload:false,
            referrer:window.parseQuery.redirect == "true",
        }
     },
    computed:{
         event(){
             return this.referrer?"click":null;
         }
     },
     methods:{
         reloadData(){
             this.svgload=true
             this.getData();
             this.Time&&clearTimeout(this.Time);
             this.Time= setTimeout(()=>{
                 this.svgload=false;
             },1000)
         },
     },
    mounted() {

        if(window.parseQuery.redirect == "true"){
                setTimeout(()=>{
                    var url = document.location.href.replace(/redirect=true/g,"");
                    if(history.replaceState){
                        history.replaceState(null, document.title, url);
                        history.go(-3);
                    }else{
                        location.replace(url);
                    }
                },1500)
        }else{

            window.localStorage.setItem("historyLen",window.history.length);

        }



    }
}